<template>
  <div class="app-container">
    <el-button @click="clickFn">默认按钮</el-button>
    <editor  v-model="state.content" :init="state.setting" />
  </div>
</template>

<script setup name="email">
import Editor from "@tinymce/tinymce-vue";

const state = reactive({
  // editor 配置项
  content: "hello vue3-tinymce!",
  setting: {
    height: 500, 
    plugins: [
      "advlist autolink lists link image charmap print preview anchor",
      "searchreplace visualblocks code fullscreen",
      "insertdatetime media table paste code help wordcount",
    ],
  },
});

function clickFn() {
    console.log(state.content);
}
</script>
<style lang="scss"></style>
